# write by hashaki
# first edit on 2018/11/05 last change on 2018/11/19
# functioin : get data from local CSV
from pandas import read_csv

class CSVFeed:
    def __init__(self,file):
        self.path=file
    
    @classmethod
    def getCSVData(cls,file):
        assert isinstance(file,list())
        temp=cls(file)
        multiple=temp.returnMultiple()
        kwargs=temp.returnKwargs()
        return multiple,kwargs
    
    # ----------------------------------------------------------------------------
    # 下为数据处理
    def returnMultiple(self):
        '''返回{'type1':倍数1,'type2':倍数2...}'''
        return 0

    def returnKwargs(self):
        '''返回{'base_1min':Kbar1,'btc_5min':Kbar2,...}'''
        return 0